package com.gong.DesignPattern.factoryPattern.simpleFactory;

/**
 * @author GongChang
 * @version 1.0
 * @date 2021/6/8 0008 8:59
 */
public class Test {

    public static void main(String[] args) {
        PhoneFactory factory = new PhoneFactory();
        Phone iphone = factory.create("iphone");
        Phone xiaomi = factory.create("xiaomi");
        iphone.makePhone();
        xiaomi.makePhone();
    }
}
